import type { NpmmirrorSearchResponse } from "@/modules/tools/dev/npm-search/types.ts";

export function searchNpmPackages(text: string, from: number, size: number) {
  return native.http.getJson<NpmmirrorSearchResponse>(`https://registry.npmmirror.com/-/v1/search?text=${text}&size=${size}&from=${from}`);
}
